/**
 * related to comShopCell.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-12-27
 */
var root=ui("$");
var helperOpen = require("helper/open");
var aLayout_goCom = ui("aLayout_goCom");
var aLayout_shop0 = ui("aLayout_shop0");
var aLayout_shop1 = ui("aLayout_shop1");
root.setMapping({
	"aLayout_shop0.visible":"shop0v",
	"aLayout_shop0.tag":"shop0.id",
	"label_shopName0.text":"shop0.name",
	"label_shopResume0.text":"shop0.resume",
	"shopLogo0.source":"shop0.fullLogo",
	"gridView_pro0.items":"shop0.mallProductVoList",
	
	"aLayout_shop1.visible":"shop1v",
	"aLayout_shop1.tag":"shop1.id",
	"label_shopName1.text":"shop1.name",
	"label_shopResume1.text":"shop1.resume",
	"shopLogo1.source":"shop1.fullLogo",
	"gridView_pro1.items":"shop1.mallProductVoList"
});

aLayout_goCom.on("touch", "", 300, function(data, e) {
	helperOpen.open("source://view/qshop/comShop/main.ui");
});
aLayout_shop0.on("touch", "", 300, function(data, e) {
	helperOpen.open("source://view/qshop/detail/main.ui",{shopId:aLayout_shop0.tag});
});
aLayout_shop1.on("touch", "", 300, function(data, e) {
	helperOpen.open("source://view/qshop/detail/main.ui",{shopId:aLayout_shop1.tag});
});